package com.cognizant.charts.dataset;

import java.awt.Color;
import java.util.LinkedHashMap;
import java.util.Map.Entry;

import org.jfree.data.xy.XYSeries;;

public class LineDataSet {
	private String dataSetTitle="";
	private Color lineColor=Color.black;
	private LinkedHashMap<Number, Number> dataSet=new LinkedHashMap<Number, Number>();
	public String getDataSetTitle() {
		return dataSetTitle;
	}
	public void setDataSetTitle(String dataSetTitle) {
		this.dataSetTitle = dataSetTitle;
	}	
	public void setDataSet(LinkedHashMap<Number, Number> dataSet) {
		this.dataSet = dataSet;
	}
	
	public Color getLineColor() {
		return lineColor;
	}
	public void setLineColor(Color lineColor) {
		this.lineColor = lineColor;
	}
	public XYSeries getXYSeries(){
		XYSeries series=new XYSeries(dataSetTitle);		
		for(Entry<Number,Number> item:dataSet.entrySet()){
			series.add(item.getKey(), item.getValue());
		}
		return series;
	}
	
	
	

}
